﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TimbreRecognition
{
    public class DataItem
    {
        private double[] _expectedOutput;

        private double[] _series;

        public double[] DataSeries
        {
            get { return _series; }
            set { _series = value; }
        }

        public double[] ExpectedOutput
        {
            get { return _expectedOutput; }
            set { _expectedOutput = value; }
        }

        public int InputCount { get { return _series.Length; } }

        public int OutputCount {get { return _expectedOutput.Length; } }

        public override string ToString()
        {
            var result = "";

            foreach (var item in _series)
                result = String.Concat(item, " ");
            result = String.Format("{0}:{1}", result, _expectedOutput);
            return result;
        }
    }
}
